package com.xgure.service;

import com.xgure.dto.EmployeeLoginDTO;
import com.xgure.dto.EmployeeRegisterDTO;
import com.xgure.dto.EmployeeUpdateDTO;
import com.xgure.pojo.Employee;
import com.xgure.vo.EmployeeLoginVO;

public interface EmployeeService {

    /**
     * 员工登录
     *
     * @return null则表示登录成功，否则表示登录失败
     */
    EmployeeLoginVO login(EmployeeLoginDTO employeeDTO);

    /**
     * 员工注册
     *
     */
    void register(EmployeeRegisterDTO employeeRegisterDTO);

    /**
     * 员工信息更新
     *
     */
    Employee update(EmployeeUpdateDTO employeeUpdateDTO);

    /**
     * 根据员工姓名查询员工
     *
     * @return 员工信息
     */
    Employee getEmployeeByName(String name);
}
